<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>带边框的表单</title>
</head>

<body>
	<form action="#">
		<fieldset>
			<legend>用户信息</legend>
			用户名：<input type="text" name="userName" value="" /><br />
			密码:<input type="password" name="pw" />
		</fieldset>
	</form>
</body>

</html>